package org.dtrd.modules.archive.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.dtrd.modules.archive.entity.bean.ReverseSchemeDetail;
import org.dtrd.modules.archive.entity.bean.UpdateSigninTemplate;
import org.dtrd.modules.archive.entity.po.DtrdEntRdArchiveReverseScheme;
import org.dtrd.modules.patient.entity.bean.report.PatientServiceProgramme;

/**
 * <p>
 * 逆转方案服务类
 * </p>
 *
 * @author QR
 * @since 2022-01-10
 */
public interface IDtrdEntRdArchiveReverseSchemeService extends IService<DtrdEntRdArchiveReverseScheme> {

    /**
     * 查询患者的逆转方案
     */
    ReverseSchemeDetail getReverseScheme(Integer patientId);

    DtrdEntRdArchiveReverseScheme getByPatientId(Integer patientId);

    /**
     * 新增或修改逆转方案内容
     */
    String saveReverseScheme(ReverseSchemeDetail dto);

    boolean removeReverseScheme(Integer patientId);

    /**
     * 获取患者服务方案报告
     */
    PatientServiceProgramme getPatientServiceProgramme(Integer patientId);

    /**
     * 获取打卡模版名称
     */
    String getTemplateByPatientId(Integer patientId);

    DtrdEntRdArchiveReverseScheme getRecordByRelationId(Integer relationId);

    boolean updateReverseSchemeSigninTemplate(UpdateSigninTemplate signinTemplate);
}
